{extend name="layout" /}
{block name="content"}
<div class="table-margin">
    <form action="{:url('product/activity')}" class="form-horizontal" method="post">
        <table class="table table-bordered contact-template-form">
            <tbody>
            <tr>
                <td width="20%" align="right">显示“热门推荐”：</td>
                <td>
                    {foreach name="Think.config.user_status" item="s"}
                    <label>
                        <input class="xb-icheck" type="radio" name="index_hot_switch" {$key==1?='checked'} value="{$index_hot_switch}">
                        <span class="pull-right">&nbsp;{$s}&nbsp;&nbsp;&nbsp;&nbsp;</span>
                    </label>
                    {/foreach}
                </td>
            </tr>
            <tr>
                <td width="20%" align="right">显示“今日上新”：</td>
                <td>
                    {foreach name="Think.config.user_status" item="s"}
                    <label>
                        <input class="xb-icheck" type="radio" name="index_today_switch" {$key==1?='checked'} value="{$index_today_switch}">
                        <span class="pull-right">&nbsp;{$s}&nbsp;&nbsp;&nbsp;&nbsp;</span>
                    </label>
                    {/foreach}
                </td>
            </tr>
            <tr>
                <tD></td>
                <td>
                    <input class="btn btn-primary" type="submit" value="添加">
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/javascript">
    $(function () {
        $('form').submit(function(){
            $(this).ajaxSubmit({
                success:showSuccess(res)
            });
            return false;
        });
    });
</script>
{/block}